package test3

import scala.collection.mutable.ListBuffer

object Gaojie3 {
  def main(args: Array[String]): Unit = {
    var l =(1 to 10)
    var l1=ListBuffer[Int]();
    var l2=ListBuffer[Int]();
    var l3=ListBuffer[Int]();
    l.foreach(x=>{
      l1.append(x)
      l2.append(x*10)
      l3.append(x*100)
    })
    var la=List(l1,l2,l3);
    //
    println(la.length)
    val l4 = la.flatten
    println(l4.length)
    println(l4);
     var l5=la.flatMap(x=>x)

    println(l5)
  }
}
